package Demo1;

/**
 * @Author: Lenovo
 * @Date: 2024/5/17 13:56
 * @description:
 */
public class Cat extends Animal {
    static {
        System.out.println("static()::Cat....");
    }
    {
        System.out.println("Cat实例代码块...");
    }
    public Cat(String name, int age) {
        super(name,age);
        System.out.println("Cat构造代码块...");
    }
    public void miaomiao(){
        System.out.println(this.name+"正在喵喵叫....");
    }
}
